package com.ostrich.demomvvm.mvvm

import com.ostrich.demomvvm.net.RetrofitManager

/**
 * @Author : yaotianxue
 * @Time : On 2023/10/18 16:18
 * @Description : BaseRepository 所有仓库的基类
 */
open class BaseRepository {

    //传入不同的api接口创建对应
    fun <T> createService(service:Class<*>):T{
        return RetrofitManager.instance.createService(service)
    }

}